<?php
/**
 * @author      Kritsanasak Kuntaros <roboconk@gmail.com>
 * @license	GNU General Public License version 2 or later; read license.txt
 * @since       version 1.0
 */
header('Content-Type: application/json; charset=utf-8');
$ems_rate = array(
    "currency" => "THB",
    "metric" => "gram",
    "short_metric" => "g",
    "last_update" => "2013-02-02",
    "metric_th" => iconv("tis-620", "utf-8", "¡ÃÑÁ"),
    "normal" => array(
        0 => array( 'weight' => 20, 'price' => 20),
        array( 'weight' => 100, 'price' => 20),
        array( 'weight' => 250, 'price' => 20),
        array( 'weight' => 500, 'price' => 20),
        array( 'weight' => 1000, 'price' => 20),
        array( 'weight' => 1500, 'price' => 35),
        array( 'weight' => 2000, 'price' => 35),
        array( 'weight' => 2500, 'price' => 50),
        array( 'weight' => 3000, 'price' => 50),
        array( 'weight' => 3500, 'price' => 65),
        array( 'weight' => 4000, 'price' => 65),
        array( 'weight' => 4500, 'price' => 80),
        array( 'weight' => 5000, 'price' => 80),
        array( 'weight' => 5500, 'price' => 95),
        array( 'weight' => 6000, 'price' => 95),
        array( 'weight' => 6500, 'price' => 110),
        array( 'weight' => 7000, 'price' => 110),
        array( 'weight' => 7500, 'price' => 125),
        array( 'weight' => 8000, 'price' => 125),
        array( 'weight' => 8500, 'price' => 140),
        array( 'weight' => 9000, 'price' => 140),
        array( 'weight' => 9500, 'price' => 155),
        array( 'weight' => 10000, 'price' => 155),
        array( 'weight' => 11000, 'price' => 170),
        array( 'weight' => 12000, 'price' => 185),
        array( 'weight' => 13000, 'price' => 200),
        array( 'weight' => 14000, 'price' => 215),
        array( 'weight' => 15000, 'price' => 230),
        array( 'weight' => 16000, 'price' => 245),
        array( 'weight' => 17000, 'price' => 260),
        array( 'weight' => 18000, 'price' => 275),
        array( 'weight' => 19000, 'price' => 290),
        array( 'weight' => 20000, 'price' => 305)
    ),
    "ems" => array(
        0 => array( 'weight' => 20, 'price' => 32),
        array( 'weight' => 100, 'price' => 37),
        array( 'weight' => 250, 'price' => 42),
        array( 'weight' => 500, 'price' => 52),
        array( 'weight' => 1000, 'price' => 67),
        array( 'weight' => 1500, 'price' => 82),
        array( 'weight' => 2000, 'price' => 97),
        array( 'weight' => 2500, 'price' => 122),
        array( 'weight' => 3000, 'price' => 137),
        array( 'weight' => 3500, 'price' => 157),
        array( 'weight' => 4000, 'price' => 177),
        array( 'weight' => 4500, 'price' => 197),
        array( 'weight' => 5000, 'price' => 217),
        array( 'weight' => 5500, 'price' => 242),
        array( 'weight' => 6000, 'price' => 267),
        array( 'weight' => 6500, 'price' => 292),
        array( 'weight' => 7000, 'price' => 317),
        array( 'weight' => 7500, 'price' => 342),
        array( 'weight' => 8000, 'price' => 367),
        array( 'weight' => 8500, 'price' => 397),
        array( 'weight' => 9000, 'price' => 427),
        array( 'weight' => 9500, 'price' => 457),
        array( 'weight' => 10000, 'price' => 487),
        array( 'weight' => 11000, 'price' => 502),
        array( 'weight' => 12000, 'price' => 517),
        array( 'weight' => 13000, 'price' => 532),
        array( 'weight' => 14000, 'price' => 547),
        array( 'weight' => 15000, 'price' => 562),
        array( 'weight' => 16000, 'price' => 577),
        array( 'weight' => 17000, 'price' => 592),
        array( 'weight' => 18000, 'price' => 607),
        array( 'weight' => 19000, 'price' => 622),
        array( 'weight' => 20000, 'price' => 637)
    )
);
echo json_encode($ems_rate);